#include <memory.h>
namespace CWARN_MEMSET_SIZEOF_PTR {

	namespace bad {
		struct S {
			int x, y;
		};
		void zero_S(struct S* ps) {
			memset(ps, 0, sizeof(ps));
		}
	}

	namespace good {
		struct S {
			int x, y;
		};
		void zero_S(struct S* ps) {
			memset(ps, 0, sizeof(*ps));
			memset(ps, 0, sizeof(struct S));
		}
	}

}